﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

public partial class listOne : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        load_content();
    }
    void load_content()
    {
        String sql = "select top 1 content from news  where  channelid in (select channel_id from channel where pageLocation='" + Request["channel"] + "') order by addDate desc ";

        DataTable dt = DB.getDataTable(sql);
        if (dt.Rows.Count > 0)
        {
            content.Text = dt.Rows[0]["content"].ToString();
        }
    }
}
